package org.example.demo21.temp;

/**
 *
 * @author guocong
 * @since 2024/3/28 15:30
 */
public abstract class OneDay {


    public final void myDay() {
        getUp();
        wash();
        breakfast();
        work();
        workDay();
        releasedFromPrison();
        dinner();
        washAgain();
        doSthElse();
        sleep();
        dead();
    }


    public void getUp() {
        System.out.println("眼睛一闭，一睁，没好的一天开始了！");
    }

    public void wash() {
        System.out.println("洗脸刷牙乱七八糟一顿操作 。。。 ");
    }

    public abstract void breakfast();

    public abstract void work();

    public abstract void workDay();


    public abstract void releasedFromPrison();


    public void dinner(){
        System.out.println("吃了顿晚饭");
    }

    public void washAgain(){
        System.out.println("睡前洗漱");
    }


    public abstract void doSthElse();

    public void sleep() {
        System.out.println("梦里啥都有！");
    }


    public void dead() {
        System.out.println("\033[35m 毒发身亡。。。 眼睛一闭，不睁 。。。  \033[0m");
    }



}
